<?php !defined('DYHB_PATH') && exit; /* DoYouHaoBaby Framework 模板缓存文件 生成时间：2011-05-28 11:32:27  */ ?>
<?php $this->includeChildTemplate( "".APP_PATH."/Tpl/Default/public_header.html" ,"" ,"" ,"" )  ;?>

<script type="text/javascript">
<!--
function saveSort(){
   move.ok();
   Dyhb.AjaxSubmit('form1','<?php echo( G::U('node/save_sort') );?>');
}
//-->
</script>

<script type="text/javascript" src="<?php echo __LIBCOM__;?>/Js/Vendor/Form/SortSelect.js"></script>

   <!-- 标题  -->
   <div class="title"><?php print G::L( "项目排序", null, null ) ; ?> ( <a href="<?php echo( G::U('node/index') );?>"><?php print G::L( "返回项目列表", null, null ) ; ?></a> )</div>

  <!-- 正文 -->
  <div id="content" class="content">
      <form method="post" id="form1" name="form1">
      <table class="form-table full">
          <tr>
            <th valign="top"><label for="search"><?php print G::L( "搜索", null, null ) ; ?>：</label></th>
            <td><input name="search" type="text" class="field">
                <input type="button" value="<?php print G::L( "查 询", null, null ) ; ?>" onclick="move.search()" class="field" />
                <div class="description"><?php print G::L( "请输入要排序的节点数字", null, null ) ; ?></div>
                <div class="warning"><?php print G::L( "只能是数字", null, null ) ; ?></div>
            </td>
          </tr>
          <tr>
            <td style="text-align:right;">
             <input type="button" value="<?php print G::L( "第 一", null, null ) ; ?>" onclick="move.moveFirst()" class="field" /><br>
             <input type="button" value="<?php print G::L( "上 移", null, null ) ; ?>" onclick="move.moveUp()" class="field" /><br>
             <input type="button" value="<?php print G::L( "下 移", null, null ) ; ?>" onclick="move.moveDown()" class="field" /><br>
             <input type="button" value="<?php print G::L( "最 后", null, null ) ; ?>" onclick="move.moveEnd()" class="field" /><br>
             <input type="text" name="jumpNum" size="4" class="field"><br>
             <input type="button" value="<?php print G::L( "跳 转", null, null ) ; ?>" onclick="move.jump()" class="field" />
            </td>
            <td><select name="sort" size="15" class="field" size="15" style="width: 200px; height: 200px">
                <?php $i=1 ;?>
<?php if( is_array( $arrSortList ) ) : foreach( $arrSortList as $key=>$value): ?>

                <option value="<?php echo( $value['node_id'] ); ?>"><?php echo( $key+1 ); ?>.<?php echo( $value['node_title'] ); ?></option>
                
<?php $i++ ;?>
<?php endforeach;endif; ?>
                </select>
                <div class="description"><?php print G::L( "排序主操作窗口", null, null ) ; ?></div>
            </td>
          </tr>
          <tr>
            <th valign="top"><label for="field"><?php print G::L( "操作", null, null ) ; ?>：</label></th>
            <td><input type="hidden" name="moveResult" />
             <input type="hidden" name="ajax" VALUE="1" />
             <input type="button" value="<?php print G::L( "确 定", null, null ) ; ?>" onclick="saveSort()" class="field" />
             <input type="reset" value="<?php print G::L( "取 消", null, null ) ; ?>" onclick="history.back()" class="field" />
            </td>
          </tr>

          </table>

        </form>
        <script type="text/javascript">
        <!--
         var move= new sortSelect('form1','sort','search','jumpNum');
        //-->
        </script>
   </div>
   <!-- end content -->

<?php $this->includeChildTemplate( "".APP_PATH."/Tpl/Default/public_footer.html" ,"" ,"" ,"" )  ;?>